<?php

namespace Sharks\Core\Persistence\Cache;

/**
 * Database缓存
 */
class DatabaseNoneCacheProvider extends DatabaseCacheProvider {

    public function has($sql, array $tables = null) {
        return false;
    }

    public function get($sql, array $tables = null) {
        return null;
    }

    public function put($sql, $cacheableValue, array $tables = null) {
        return $cacheableValue;
    }

    public function changeByQuery($sql) {
        // Nothing
    }

    public function change($table) {
        // Nothing
    }

    public function changes(array $tables) {
        // Nothing
    }
}